<!-- Main Content -->

<div class="container-fluid">
    <!-- Title -->
    <div class="row heading-bg bg-pink">
        <div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
            <h5 class="txt-light">应用录入</h5>
        </div>

        <!-- Breadcrumb -->
        <div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
            <ol class="breadcrumb">
                <li><a href="index.html">渠道中心</a></li>
                <li><a href="form-validation.html#"><span>商品管理</span></a></li>
                <li class="active"><span>应用录入</span></li>
            </ol>
        </div>
        <!-- /Breadcrumb -->

    </div>
    <!-- /Title -->

    <!-- Row -->
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default card-view">
                <div class="panel-heading">
                    <div class="pull-left">
                        <h6 class="panel-title txt-dark">应用录入</h6>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-wrapper collapse in">
                    <div class="panel-body">

                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-wrap">
                                    <form action="?o=center&t=channel_app_save&id=<{$gvar.fget.id}>" data-toggle="validator" method='post' role="form">
                                        <div class="form-group">
                                            <label for="inputName" class="control-label mb-10">名称</label>
                                            <input name="name" value="<{$applist.name}>" type="text" class="form-control" id="inputName" placeholder="商户名称" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputName" class="control-label mb-10">微信号</label>
                                            <input name="weixin_name" value="<{$applist.weixin_name}>" type="text" class="form-control" id="inputName" placeholder="纳税人名称" required>
                                        </div>
                                        <div class="form-group">
                                            <label for="inputName" class="control-label mb-10">KEY</label>
                                            <input name="app_key" value="<{$applist.app_key}>" type="text" class="form-control" id="inputName" placeholder="纳税人识别码" required>
                                        </div>


                                        <div class="form-group mb-30">
                                            <label class="control-label mb-10 text-left">绑定商户</label>
                                            <{foreach from=$binding_use key=myId_2 item=menu_2}>
                                            <div class="checkbox checkbox-success">
                                                <input  value="<{$menu_2.id}>" name="author_business_id[]" id="checkbox3" type="checkbox" <{if in_array($menu_2.id,$app_data)}>checked="checked"<{/if}> >
                                                <label for="checkbox3"><{$menu_2.id}> <{$menu_2.business_name}> </label>
                                            </div>
                                            <{/foreach}>
                                        </div>

                                        <div class="form-group mb-30">
                                            <label class="control-label mb-10 text-left">状态</label>
                                            <div class="radio radio-info">
                                                <input id="radio1" name="status" value="1" type="radio"  <{if $applist.status==1 || !$applist.status}>checked="checked"<{/if}>>
                                                <label for="radio1"> 启用 </label>
                                            </div>
                                            <div class="radio radio-info">
                                                <input id="radio2" name="status" value="0"  type="radio"   <{if $applist.status==0}>checked="checked"<{/if}> >
                                                <label for="radio2"> 禁用 </label>
                                            </div>
                                        </div>
                                        
                                        <!--<div class="form-group">
                                            <div class="checkbox">
                                                <input type="checkbox" id="terms" data-error="Before you check yourself" required>
                                                <label for="terms" >Check yourself</label>
                                                <div class="help-block with-errors"></div>
                                            </div>
                                        </div>-->
                                        <div class="form-group mb-0">
                                            <button type="submit" class="btn btn-success btn-anim"><i class="icon-rocket"></i><span class="btn-text">submit</span></button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /Row -->
</div>

